Solving the complex roots of cubic equation